<template>
  <div class="app-container">
<!--    <h1>这是 App 组件</h1>-->

  <!--      顶部 header 区域-->
      <mt-header fixed title="～～小恩诺儿～～"></mt-header>

  <!--      中间路由 router-view区域-->
<!--        <h1>23456</h1>-->
      <transition>
          <router-view></router-view>
      </transition>


  <!--      底部tabbae 区域-->

      <nav class="mui-bar mui-bar-tab">
<!--          下面一排按钮 通过 路由 router-link   to  绑定-->
          <router-link class="mui-tab-item-lib" to="/home">
              <span class="mui-icon mui-icon-home"></span>
              <span class="mui-tab-label">首页</span>
          </router-link>
<!--       第一列span显示图标   其中 mui-icon-email类显示邮箱图标   mui-icon-contact显示人物图标  mui-icon-gear设置图标  mui-active设置路由高亮-->
          <router-link class="mui-tab-item-lib" to="/member">
              <span class="mui-icon mui-icon-contact"></span>
              <span class="mui-tab-label">会员</span>
          </router-link>
          <router-link class="mui-tab-item-lib" to="/shopcar">
              <span class="mui-icon mui-icon-extra mui-icon-extra-cart">
                  <span class="mui-badge">0</span>
              </span>
              <span class="mui-tab-label">购物车</span>
          </router-link>
          <router-link class="mui-tab-item-lib" to="/search">
              <span class="mui-icon mui-icon-search"></span>
              <span class="mui-tab-label">搜索</span>
          </router-link>
      </nav>


  </div>
</template>

<script>

</script>


<!--局部的样式-->
<style lang="scss" scoped>
    .mint-header{ //头部设置层级别 不被遮挡
        z-index: 99;
    }
    .app-container{
        //下移
        padding-top: 40px;
        padding-bottom: 50px;  //设置页面底部
        overflow-x: hidden;  //超过宽度隐藏
    }

/*   transition 设置页面滑动 */
.v-enter
{
    opacity: 0;
    transform: translateX(100%);
}
.v-leave-to{
    opacity: 0;
    transform: translateX(-100%);
    position: absolute;    // 滑动不往上移
}
.v-enter-active,
.v-leave-active{
    transition: all 0.5s ease;
}

/*  该类名 解决tabbar 点击无法切换的问题  */
.mui-bar-tab .mui-tab-item-lib.mui-active{
    color: #007aff;
}
.mui-bar-tab .mui-tab-item-lib {
    display: table-cell;
    overflow: hidden;
    width: 1%;
    height: 50px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #929292;
}
.mui-bar-tab .mui-tab-item-lib .mui-icon {
    top: 3px;
    width: 24px;
    height: 24px;
    padding-top: 0;
    padding-bottom: 0;
}
.mui-bar-tab .mui-tab-item-lib .mui-icon~.mui-tab-label {
    font-size: 11px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}
</style>

<!--    <mt-header  title="固定在顶部"></mt-header>-->

<!--      中间路由 router-view区域-->
<!--    <router-link to="/account">Account</router-link>-->
<!--    <router-link to="/goodslist">Goodslist</router-link>-->

<!--    <router-view></router-view>-->
<!--      底部tabbae 区域-->